﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XISoft.AppCreator.Util.Common
{
    public delegate void MessageHandle(Object sender,String Message);

    public class MessageHelper
    {
        public event MessageHandle Message;

        public MessageHelper()
        {
            Message += new MessageHandle(OnMessage);
        }

        protected virtual void OnMessage(Object sender, String Message)
        {
        }

        protected virtual void PostMessage(String Msg)
        {
            Message(this, Msg);
        }
    }
}
